package cn.com.csg.smartenergy.modules.biz.energy.mapper;

import cn.com.csg.smartenergy.modules.biz.entity.IotDeviceEntity;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 设备
 *
 * @author chenyu
 * @email chenyu@csg.com
 * @date 2019-07-30 09:05:43
 */
@Mapper
@DS("energy")
public interface EnergyIotDeviceMapper extends BaseMapper<IotDeviceEntity> {

    /**
     * 根据厂商ID、终端类型、终端型号、终端序列号，获取设备信息。
     *
     * @param device 设备
     * @return 设备信息
     */
    List<IotDeviceEntity> getDeviceInfo(IotDeviceEntity device);


}
